From: cl349@firebug.cl.cam.ac.uk Date: Wed, 9 Mar 2005 00:44:59 +0000 (+0000) Subject: bitkeeper revision 1.1159.258.32 (422e470bJa_VGcUAPdnpZWrD6n9uew) X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~17400^2~141 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22%22?a=commitdiff_plain;h=b375b7d603ba0c998aaac3dafdcf4806933ad7bb;p=xen.git bitkeeper revision 1.1159.258.32 (422e470bJa_VGcUAPdnpZWrD6n9uew) Export Xen provided command line as /kern/xen/cmdline. Signed-off-by: Christian Limpach --- diff --git a/netbsd-2.0-xen-sparse/sys/arch/xen/xen/hypervisor.c b/netbsd-2.0-xen-sparse/sys/arch/xen/xen/hypervisor.c index 294f79830a..45a66af480 100644 --- a/netbsd-2.0-xen-sparse/sys/arch/xen/xen/hypervisor.c +++ b/netbsd-2.0-xen-sparse/sys/arch/xen/xen/hypervisor.c @@ -52,7 +52,6 @@ __KERNEL_RCSID(0, "$NetBSD: hypervisor.c,v 1.7.2.1 2004/05/22 15:58:54 he Exp $" #include #include -#ifdef DOM0OPS #include #include #include @@ -60,7 +59,6 @@ __KERNEL_RCSID(0, "$NetBSD: hypervisor.c,v 1.7.2.1 2004/05/22 15:58:54 he Exp $" #include #include #include -#endif #if NXENNET > 0 #include @@ -187,9 +185,9 @@ hypervisor_attach(parent, self, aux) hac.hac_xennpx.xa_device = "npx"; config_found(self, &hac.hac_xennpx, hypervisor_print); #endif + xenkernfs_init(); #ifdef DOM0OPS if (xen_start_info.flags & SIF_PRIVILEGED) { - xenkernfs_init(); xenprivcmd_init(); xenmachmem_init(); xenvfr_init(); @@ -222,8 +220,7 @@ hypervisor_notify_via_evtchn(unsigned int port) (void)HYPERVISOR_event_channel_op(&op); } -#ifdef DOM0OPS - +#define READ_MODE (S_IRUSR|S_IRGRP|S_IROTH) #define DIR_MODE (S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH) kernfs_parentdir_t *kernxen_pkt; @@ -237,5 +234,9 @@ xenkernfs_init() KERNFS_INITENTRY(dkt, DT_DIR, "xen", NULL, KFSsubdir, VDIR, DIR_MODE); kernfs_addentry(NULL, dkt); kernxen_pkt = KERNFS_ENTOPARENTDIR(dkt); + + KERNFS_ALLOCENTRY(dkt, M_TEMP, M_WAITOK); + KERNFS_INITENTRY(dkt, DT_REG, "cmdline", xen_start_info.cmd_line, + KFSstring, VREG, READ_MODE); + kernfs_addentry(kernxen_pkt, dkt); } -#endif